<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加考试题</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
    <base href="${pageContext.request.scheme }://${pageContext.request.serverName }:${pageContext.request.serverPort }${pageContext.request.contextPath }/ "/>
</head>
<body>
    <h1>添加考试题</h1>
    <form action="/addQuestionSet1" method="post">
        <p>标题：<input type="text" placeholder="请输入标题" name="title"></p>
        <p>简介：<input type="text" placeholder="请输入简介" name="description"></p>
<%--        <p>课程编号：<input type="text" placeholder="请输入课程编号" name="subjectId"></p>--%>
        <p>课程名：
            <select name="subjectId">
                <c:forEach var="subjects" items="${subjects}">
                    <option value="${subjects.id}">${subjects.subjectName}</option>
                </c:forEach>
            </select>
        </p>

        <p>总分：<input type="text" placeholder="请输入总分" name="point"></p>
        <p>考试时间：
            <input type="text" placeholder="请输入考试时间" name="time">
        </p>
        <p><input type="submit" value="添加"></p>
    </form>
    <script src="../../layui/layui.js"></script>
</body>
</html>
